#include "mainwindow.h"
#include <QApplication>
#include <QDebug>
#include "test.h"
#include "myclass.h"

void test1()
{
    Test t;
    QObject *p = &t;

    qDebug() << t.isEnabled() << endl;
    qDebug() << p->property("enabled").toBool() << endl;

    p->setProperty("enabled", true);

    qDebug() << t.isEnabled() << endl;
    qDebug() << p->property("enabled").toBool() << endl;
}

int main(int argc, char *argv[])
{
    QApplication a(argc, argv);
    MainWindow w;
    w.show();
    test1();





    MyClass *myinstance = new MyClass;
    QObject *object = myinstance;

    object->setProperty("priority", "VeryHigh");
    qDebug() << object->property("priority").toUInt() << endl;


    delete myinstance;


    return a.exec();
}
